﻿using System;
using DevExpress.XtraEditors.DXErrorProvider;

namespace MMS
{
    public class ViewOrderDTO 
    {
        #region Constructors

        /// <summary>
        /// Initializes a new instance of the CustomerDTO class.
        /// </summary>
        public ViewOrderDTO()
        {
        }

        public ViewOrderDTO(string customerId, string customerName, string address, string orderFormId, string building, int vat, int discount, string materialName, string unitId, string unitName, int amount, int priceByDay, string repositoryId, DateTime rentDay, DateTime returnDay, int typeId)
        {
            this.CustomerId = customerId;
            this.CustomerName = customerName;
            this.Address = address;
            this.OrderFormId = orderFormId;
            this.Building = building;
            this.Vat = vat;
            this.Discount = discount;
            this.MaterialName = materialName;
            this.UnitId = unitId;
            this.UnitName = unitName;
            this.Amount = amount;
            this.PriceByDay = priceByDay;
            this.RepositoryId = repositoryId;
            this.RentDay = rentDay;
            this.ReturnDay = returnDay;
            this.TypeId = typeId;
        }

        #endregion

        #region Properties
        /// <summary>
        /// Gets or sets the MaterialId value.
        /// </summary>
        public string MaterialId { get; set; }

        /// <summary>
        /// Gets or sets the MaterialName value.
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// Gets or sets the UnitId value.
        /// </summary>
        public string UnitId { get; set; }

        /// <summary>
        /// Gets or sets the UnitName value.
        /// </summary>
        public string UnitName { get; set; }
        /// <summary>
        /// Gets or sets the PriceByDay value.
        /// </summary>
        public int PriceByDay { get; set; }

        /// <summary>
        /// Gets or sets the Amount value.
        /// </summary>
        public int Amount { get; set; }

        /// <summary>
        /// Gets or sets the RepositoryName value.
        /// </summary>
        public string RepositoryName { get; set; }

        /// <summary>
        /// Gets or sets the RepositoryId value.
        /// </summary>
        public string RepositoryId { get; set; }

        /// <summary>
        /// Gets or sets the Address value.
        /// </summary>
        public string Address { get; set; }

        public string CustomerId { get; set; }

        public string CustomerName { get; set; }

        public string OrderFormId { get; set; }

        public string Building { get; set; }

        public int Vat { get; set; }

        public int Discount { get; set; }

        public DateTime RentDay { get; set; }

        public DateTime ReturnDay { get; set; }

        public int TypeId { get; set; }

        public int ReturnAmount { get; set; }

        public int Remaining { get; set; }

        #endregion

    }
}
